package cn.xxstudy.blog.controller

import org.springframework.stereotype.Controller
import org.springframework.ui.Model
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping

/**
 * 作者：wuxinxi on 2020/11/24
 * 包名：cn.xxstudy.blog.controller
 * TODO:导航
 */
@Controller
class NavController {
    companion object {
        private const val index = "index"
        private const val category = "category"
        private const val tags = "tags"
        private const val history = "history"
        private const val about = "about"
    }

//    @GetMapping("/")
//    fun getIndex(model: Model): String {
//        return index
//    }

//    @GetMapping("/$category")
//    fun getCategory(model: Model): String {
//        return category
//    }

//    @GetMapping("/$tags")
//    fun getTags(model: Model): String {
//        return tags
//    }

//    @GetMapping("/$history")
//    fun getHistory(model: Model): String {
//        return history
//    }
//

    @GetMapping("/$about")
    fun getAbout(model: Model): String {
        return about
    }
}